@import 'variables';
@import 'mixin';
@import 'transition';
@import 'element-ui';
@import 'sidebar';
@import 'btn';

body {
    margin: 0;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100vh;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

code {
    background: #eef1f6;
    padding: 15px 16px;
    margin-bottom: 20px;
    display: block;
    line-height: 36px;
    font-size: 15px;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

    a {
        color: #337ab7;
        cursor: pointer;

        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

.warn-content {
    background: rgba(66, 185, 131, .1);
    border-radius: 2px;
    padding: 16px;
    padding: 1rem;
    line-height: 1.6rem;
    word-spacing: .05rem;

    a {
        color: #42b983;
        font-weight: 600;
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    margin-top: 30px;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

    .subtitle {
        font-size: 20px;
        color: #fff;
    }

    &.draft {
        background: #d0d0d0;
    }

    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;

    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;

    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

/****样式规范****/

// 内容标题
.content-title {
    color: #333333;
    font-size: 16px;
    font-weight: bold;
}

//分页组件
.page-component {
    margin-top: 20px;
    text-align: center;
}

// 补充说明文字
.supplementary-specification {
    font-size: 16px;
    color: #333333;
}

// 加长下拉框选择区域
.el-select-dropdown__list, .el-select-dropdown__item, .el-select-dropdown__item span {
    max-width: none !important;
}

.el-select-dropdown__item {
    width: 100%;
}

.el-cascader-menu {
    overflow-x: hidden !important;
}

.el-cascader-menu__wrap {
    overflow-x: hidden !important;
}

.fixed-input-hidden {
    position: fixed;
    left: -9999px;
    top: -9999px;
}

/* 表格数据样式 */
.tooltips-blue {
    color: #139ce4;
}

.score-text, .code-error-tips, .tooltips-red, .status-red {
    color: #e21f06;
}

.status-green {
    color: #12bf42;
}

.status-yellow {
    color: #f29716;
}

.tips-text {
    color: #606266;
    cursor: auto;
}

.code-error-span {
    color: #fff;
    background: #e21f06;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
}

.not-code-error-tips {
    color: #f2ab66;
}

.not-code-error-span {
    color: #fff;
    background: #f2ab66;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
}

// 病案号样式
.to-child-page {
    color: #409EFF;
    cursor: pointer;
    &.disabled {
        color: #99a9bf;
        cursor: not-allowed;
    }
}

// 表格中提示内容居中
.table-tooltip {
    margin: 0 auto;
}

// 系统管理搜索框
.system-search-form {
    padding: 10px 0;
    background: #f4f4f4;
}

// 解决文字按钮撑高行高
.cell .el-button--text {
    padding: 0;
}

// 自定义时间空间弹出框大小
.custom-date-width {
    width: 240px;
    .el-picker-panel__content {
        width: 216px;
        margin: 0 12px 12px;
        .el-year-table {
            td {
                padding: 8px 3px;
            }
        }
        .el-month-table {
            td {
                div {
                    padding: 0;
                    height: 32px;
                    a {
                        height: 32px;
                        line-height: 32px;
                    }
                }
            }
        }
    }
}

.el-table__header {
    th {
        background: #fafafa;
        color: #333;
    }
}

.el-tooltip__popper {
    max-width: 600px;
}

.info-table {
    .el-select-dropdown {
        .el-select-dropdown__item {
            height: 22px!important;
            line-height: 22px!important;
            padding: 0 4px!important;
        }
        .el-input__suffix {
            right: 0!important;
            .el-input__icon {
                line-height: 22px!important;
            }
        }
    }

    .edit-tableForm-date {
        .el-input__inner {
            padding-left: 20px!important;
        }
        .el-input__prefix {
            left: 0!important;
            .el-input__icon {
                line-height: 22px!important;
            }
        }
        .el-input__suffix {
            right: 0!important;
            .el-input__icon {
                line-height: 22px!important;
            }
        }
    }

    .edit-tableForm-td {
        width: calc(100% - 90px) !important;
    }
}
